package adv4;

import java.util.Calendar;
import java.time.*;
/**
 * @author oldliu
 * @since 1.0
 */
public class Cal2 {
    public static void main(String[] args) {
        Calendar c=Calendar.getInstance();
        System.out.println(c);
        c.set(Calendar.MONTH,5);
        System.out.println("现在是："+c.getTime());
        //c.clear();
        c.set(Calendar.DATE,-1);
        System.out.println("现在是："+c.getTime());
        System.out.println(">>>>>>>>>>>>>>>>>>>>");
        LocalDate now = LocalDate.now();
        System.out.println(now);
    }
}
